.class Lcom/esfile/screen/recorder/utils/e;
.super Ljava/lang/Object;
.source "BuildProperties.java"


# static fields
.field private static b:Lcom/esfile/screen/recorder/utils/e;


# instance fields
.field private final a:Ljava/util/Properties;


# direct methods
.method private constructor <init>()V
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Ljava/util/Properties;

    invoke-direct {v0}, Ljava/util/Properties;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/utils/e;->a:Ljava/util/Properties;

    .line 3
    new-instance v1, Ljava/io/FileInputStream;

    new-instance v2, Ljava/io/File;

    invoke-static {}, Landroid/os/Environment;->getRootDirectory()Ljava/io/File;

    move-result-object v3

    const-string v4, "build.prop"

    invoke-direct {v2, v3, v4}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    invoke-direct {v1, v2}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V

    invoke-virtual {v0, v1}, Ljava/util/Properties;->load(Ljava/io/InputStream;)V

    return-void
.end method

.method public static a()Lcom/esfile/screen/recorder/utils/e;
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 3
    sget-object v0, Lcom/esfile/screen/recorder/utils/e;->b:Lcom/esfile/screen/recorder/utils/e;

    if-nez v0, :cond_1

    .line 4
    const-class v0, Lcom/esfile/screen/recorder/utils/e;

    monitor-enter v0

    .line 5
    :try_start_0
    sget-object v1, Lcom/esfile/screen/recorder/utils/e;->b:Lcom/esfile/screen/recorder/utils/e;

    if-nez v1, :cond_0

    .line 6
    new-instance v1, Lcom/esfile/screen/recorder/utils/e;

    invoke-direct {v1}, Lcom/esfile/screen/recorder/utils/e;-><init>()V

    sput-object v1, Lcom/esfile/screen/recorder/utils/e;->b:Lcom/esfile/screen/recorder/utils/e;

    .line 7
    :cond_0
    monitor-exit v0

    goto :goto_0

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1

    .line 8
    :cond_1
    :goto_0
    sget-object v0, Lcom/esfile/screen/recorder/utils/e;->b:Lcom/esfile/screen/recorder/utils/e;

    return-object v0
.end method


# virtual methods
.method public a(Ljava/lang/String;)Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/utils/e;->a:Ljava/util/Properties;

    invoke-virtual {v0, p1}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/utils/e;->a:Ljava/util/Properties;

    invoke-virtual {v0, p1, p2}, Ljava/util/Properties;->getProperty(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method
